FROM successage/ubuntu-ruby
MAINTAINER Cherokee <successage@gmail.com>

RUN mkdir -p /data/app/
# Define working directory.
WORKDIR /data/app

#neovigator install
ENV GRAPHENEDB_URL "http://192.168.1.14:7474"
RUN git clone http://github.com/maxdemarzi/neovigator.git /data/app/neovigator/
RUN cd /data/app/neovigator && sed -i 's/2.2.0/2.2.1/ig' Gemfile && sed -i 's/rubygems.org/ruby.taobao.org/ig' Gemfile && bundle


# Define mountable directories.
VOLUME ["/data/app"]

EXPOSE 22 9292
CMD /etc/init.d/ssh start && cd /data/app/neovigator && rackup -o 0.0.0.0 -p 9292
